
import request from '../utils/request'

// 获取页面数据
export function getHomeApi(params) {
    return request({
        url: "/zyhome",
        method: 'get',
        params
    })
}

// 删除
export function deleteOneApi(data) {

    return request({
        url: '/deleteOne',
        method: 'post',
        data: data
    })
}

// 批量删除
export function deleteAllApi(data) {

    return request({
        url: '/deleteall',
        method: 'post',
        data: data
    })
}

// 添加
export function addOneApi(data) {
    return request({
        url: '/addOne',
        method: 'post',
        data: data
    })
}

//编辑
export function updateAlterApi(data) {
    return request({
        url: '/alterOne',
        method: 'post',
        data: data
    })
}

